﻿using Core.DataAccess.Model.Projects;
using Core.Framework.Model.Common;
using System;
using System.Collections.Generic;
using System.Text;

namespace Core.IBusiness.IProjectModule
{
    /// <summary>
    /// 项目支付配置管理
    /// </summary>
    public interface IProjectPayInfo
    {

        /// <summary>
        /// 支付宝配置管理
        /// </summary>
        /// <param name="model">实体内容</param>
        /// <param name="sqlExecType">操作类型</param>
        /// <returns></returns>
        MethodResult<int> AliPayInfoExec(ProjectAliPay model, SqlExecType sqlExecType);

        /// <summary>
        /// 微信支付配置管理
        /// </summary>
        /// <param name="model">实体内容</param>
        /// <param name="sqlExecType">操作类型</param>
        /// <returns></returns>
        MethodResult<int> WChatPayInfoExec(ProjectWChatPay model, SqlExecType sqlExecType);


        /// <summary>
        /// 获取支付宝配置信息
        /// </summary>
        /// <param name="projectKey">项目关键字</param>
        /// <returns></returns>
        MethodResult<ProjectAliPay> GetAliPayInfo(int projectKey);


        /// <summary>
        /// 获取微信支付配置信息
        /// </summary>
        /// <param name="projectKey">项目关键字</param>
        /// <returns></returns>
        MethodResult<ProjectWChatPay> GetWChatPayInfo(int projectKey);


    }
}
